<template>
  <el-form
    size="small"
    :model="form"
    ref="form"
    label-width="100px"
    label-position="right"
  >
    <el-form-item v-for="(v,k) in map" :label="v" :key="k">{{form[k]}}</el-form-item>
  </el-form>
</template>
<script lang="ts">
  import { Vue, Component } from 'vue-property-decorator'

  @Component
  export default class formPreview extends Vue {
    form = {}
    map = {}

    initForm (form,map) {
      this.form = form
      this.map = map
    }
  }
</script>
